home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / rdflib / compat.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  594 b   |  17 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import sys
  5. if sys.version_info < (2, 4, 1, 'alpha', 1):
  6.     
  7.     def rsplit(value, char = None, count = -1):
  8.         if char is None:
  9.             char = ' '
  10.         
  11.         parts = value.split(char)
  12.         return [
  13.             char.join(parts[:-count])] + parts[-count:]
  14.  
  15. else:
  16.     from string import rsplit
  17.